package patterns.factoryPattern;

public abstract class Book {
	String name;
	String author;
	Float price;
	SellArea sellArea;

	public final String sayName() {
		return this.name;
	}

	public final String showAuthor() {
		return this.author;
	}

	public final Float sayPrice() {
		return this.price;
	}

	public final void setSellArea(SellArea sellArea) {
		this.sellArea = sellArea;
	}

	public final String sayStores() {
		return new StringBuffer("selfBookStore:").append(sellArea.saySelfBookStoreNames())
				.append(",selfBookStoreNumber:").append(sellArea.saySelfBookStoreNumber()).append("; otherBookStore:")
				.append(sellArea.sayOtherBookStoreNames()).append(",otherBookStoreNumber:")
				.append(sellArea.sayOtherBookStoreNumber()).toString();
	}

	abstract String showDescription();
}
